package com.app.shortvideo.utils.jump

import android.content.Intent
import android.app.Activity
import android.content.Context

interface IJumper {

    fun generateIntent(context: Context?): Intent?

    /**
     * final check when ready to launch
     *
     * @return false will stop jump
     */
    fun checkShouldJump(context: Context?): Boolean

    /**
     * When [.checkShouldJump] returns false,
     * this method will be invoked to handle error or show alert to user
     *
     * @param activity
     */
    fun onJumpInterrupted(activity: Activity?)

    fun isSupport():Boolean

}